package com.pig4cloud.pig.pigunit.entity;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("property_unit")
public class Unit extends Model<Unit> {
	@TableId(type = IdType.ASSIGN_ID)
	private Long unitId;

	private String unitName;

	private Long buildingId;

	@TableField(exist = false)//不映射数据库字段
	private String buildingName;

	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	@TableField(exist = false)
	private Integer floorNum;

	@TableField(fill = FieldFill.UPDATE)
	private String updateBy;

	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	@TableField(fill = FieldFill.INSERT)
	private String delFlag ;

	private String remark;

}
